.class public Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "VideoEditActivity.java"

# interfaces
.implements Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabAdapter$b;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$i;,
        Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;
    }
.end annotation


# instance fields
.field private m:Les/cd;

.field private n:I

.field private o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

.field private p:[Ljava/lang/String;

.field private q:Landroidx/recyclerview/widget/RecyclerView;

.field private r:I

.field private s:I

.field private t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

.field private u:Lcom/esfile/screen/recorder/videos/edit/l;

.field private v:J


# direct methods
.method public constructor <init>()V
    .locals 4

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$a;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    const/4 v0, 0x6

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "BGMRender"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const/4 v1, 0x1

    const-string v3, "SubtitleRender"

    aput-object v3, v0, v1

    const/4 v1, 0x2

    const-string v3, "BackgroundRender"

    aput-object v3, v0, v1

    const/4 v1, 0x3

    const-string v3, "CropRender"

    aput-object v3, v0, v1

    const/4 v1, 0x4

    const-string v3, "RotateRender"

    aput-object v3, v0, v1

    const/4 v1, 0x5

    const-string v3, "PictureRender"

    aput-object v3, v0, v1

    .line 3
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->p:[Ljava/lang/String;

    .line 4
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->r:I

    .line 5
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->s:I

    return-void
.end method

.method private I()V
    .locals 6

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->u:Lcom/esfile/screen/recorder/videos/edit/l;

    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    new-instance v5, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$h;

    invoke-direct {v5, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$h;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)V

    move-object v0, p0

    invoke-static/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/content/Context;Ljava/lang/String;Les/cd;Lcom/esfile/screen/recorder/videos/edit/l;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method

.method private J()Ljava/lang/String;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    if-eqz v0, :cond_6

    iget-object v0, v0, Les/cd;->i:Les/cd$d;

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget v0, v0, Les/cd$d;->b:I

    const/4 v1, 0x2

    if-eq v0, v1, :cond_5

    const/4 v1, 0x3

    if-eq v0, v1, :cond_4

    const/4 v1, 0x4

    if-eq v0, v1, :cond_3

    const/4 v1, 0x5

    if-eq v0, v1, :cond_2

    const/4 v1, 0x6

    if-eq v0, v1, :cond_1

    const-string v0, "free"

    return-object v0

    :cond_1
    const-string v0, "9-16"

    return-object v0

    :cond_2
    const-string v0, "16-9"

    return-object v0

    :cond_3
    const-string v0, "3-4"

    return-object v0

    :cond_4
    const-string v0, "4-3"

    return-object v0

    :cond_5
    const-string v0, "1-1"

    return-object v0

    :cond_6
    :goto_0
    const-string v0, ""

    return-object v0
.end method

.method private K()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;->b(Z)V

    .line 3
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$b;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;->setOnShowFullScreenClickListener(Landroid/view/View$OnClickListener;)V

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;)V

    return-void
.end method

.method private L()V
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    .line 2
    sget v1, Les/z4;->durec_share_saving:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setProgressText(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setOnCancelClickListener(Landroid/view/View$OnClickListener;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    .line 5
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_0

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    const/high16 v1, 0x42c80000    # 100.0f

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setZ(F)V

    .line 7
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->w()Landroid/view/ViewGroup;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    return-void
.end method

.method private M()Landroid/view/View;
    .locals 3

    .line 1
    new-instance v0, Landroidx/recyclerview/widget/RecyclerView;

    invoke-direct {v0, p0}, Landroidx/recyclerview/widget/RecyclerView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$i;

    const/4 v2, 0x0

    invoke-direct {v1, p0, p0, v2, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$i;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;Landroid/content/Context;IZ)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 3
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory;->a()Ljava/util/List;

    move-result-object v0

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v2, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabAdapter;

    invoke-direct {v2, v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabAdapter;-><init>(Ljava/util/List;Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabAdapter$b;)V

    invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 5
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->l(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    return-object v0
.end method

.method private N()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->j:Les/cd$u;

    if-eqz v0, :cond_0

    iget-boolean v0, v0, Les/cd$u;->a:Z

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/ui/c;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/ui/c;-><init>(Landroid/content/Context;)V

    .line 3
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$e;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$e;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;Lcom/esfile/screen/recorder/videos/edit/ui/c;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/c;->setOnWaterMarkCloseClickListener(Lcom/esfile/screen/recorder/videos/edit/ui/c$a;)V

    const/4 v1, 0x1

    .line 4
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/c;->a(Z)V

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method private O()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->r:I

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->s:I

    if-gt v0, v1, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 3
    :cond_0
    sget v0, Les/z4;->durec_not_support_horizontal_videos:I

    invoke-static {v0}, Les/ec;->a(I)V

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->r:I

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)Landroidx/recyclerview/widget/RecyclerView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    return-object p0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 33
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 34
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "from"

    .line 35
    invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 36
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 37
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/view/View;)V
    .locals 2

    if-nez p1, :cond_0

    return-void

    .line 26
    :cond_0
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 27
    invoke-virtual {p1, v0}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    .line 28
    iget v0, v0, Landroid/graphics/Rect;->right:I

    .line 29
    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result p1

    .line 30
    div-int/lit8 p1, p1, 0x2

    sub-int/2addr v0, p1

    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->n:I

    sub-int/2addr v0, p1

    .line 31
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->canScrollHorizontally(I)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 32
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->smoothScrollBy(II)V

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->s:I

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;I)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->n(I)V

    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)[Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->p:[Ljava/lang/String;

    return-object p0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)Les/cd;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    return-object p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)Lcom/esfile/screen/recorder/videos/edit/l;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->u:Lcom/esfile/screen/recorder/videos/edit/l;

    return-object p0
.end method

.method private j(I)V
    .locals 4

    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-ne p1, v2, :cond_0

    .line 1
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iget-object v3, v2, Les/cd;->c:Les/cd$m;

    if-eqz v3, :cond_0

    .line 2
    invoke-static {v2, v1, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;II)V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iput-object v0, p1, Les/cd;->c:Les/cd$m;

    .line 4
    invoke-static {p1}, Les/dd;->a(Les/cd;)V

    goto :goto_0

    :cond_0
    if-nez p1, :cond_1

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iget-object v2, p1, Les/cd;->b:Les/cd$s;

    if-eqz v2, :cond_1

    .line 6
    iget-wide v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->v:J

    long-to-int v3, v2

    invoke-static {p1, v1, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->b(Les/cd;II)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iput-object v0, p1, Les/cd;->b:Les/cd$s;

    .line 8
    invoke-static {p1}, Les/dd;->a(Les/cd;)V

    :cond_1
    :goto_0
    return-void
.end method

.method private k(I)V
    .locals 5

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/ui/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/ui/a;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    .line 3
    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v3, 0x0

    .line 4
    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 5
    sget v2, Les/x4;->emoji_icon:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 6
    sget v3, Les/w4;->durec_share_guide_dialog_img:I

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 7
    sget v2, Les/x4;->emoji_title:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    .line 8
    sget v2, Les/x4;->emoji_message:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const/4 v3, 0x1

    if-ne p1, v3, :cond_0

    .line 9
    sget v4, Les/z4;->durec_trim_confirm_warn:I

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :cond_0
    if-nez p1, :cond_1

    .line 10
    sget v4, Les/z4;->durec_remove_middle_confirm_warn:I

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 11
    :cond_1
    :goto_0
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Landroid/view/View;)V

    .line 12
    sget v1, Les/z4;->durec_common_confirm:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$f;

    invoke-direct {v2, p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$f;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;I)V

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/ui/a;->b(ILandroid/content/DialogInterface$OnClickListener;)V

    .line 13
    sget p1, Les/z4;->durec_common_cancel:I

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$g;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$g;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)V

    invoke-virtual {v0, p1, v1}, Lcom/esfile/screen/recorder/ui/a;->a(ILandroid/content/DialogInterface$OnClickListener;)V

    .line 14
    invoke-virtual {v0, v3}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 15
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    return-void
.end method

.method private l(I)V
    .locals 2

    .line 1
    invoke-static {p0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0}, Les/s6;->j()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->q:Landroidx/recyclerview/widget/RecyclerView;

    add-int/lit8 p1, p1, -0x1

    invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V

    .line 3
    new-instance p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$a;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;)V

    const-wide/16 v0, 0x3e8

    invoke-static {p1, v0, v1}, Les/xc;->a(Ljava/lang/Runnable;J)V

    return-void
.end method

.method private m(I)V
    .locals 8

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->v:J

    .line 2
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v2

    const-wide/16 v3, 0x0

    const/4 v5, 0x1

    if-ne p1, v5, :cond_1

    .line 3
    iget-object v2, v2, Les/cd;->c:Les/cd$m;

    if-eqz v2, :cond_3

    iget-wide v5, v2, Les/cd$m;->a:J

    cmp-long v7, v5, v3

    if-nez v7, :cond_0

    iget-wide v2, v2, Les/cd$m;->b:J

    cmp-long v4, v2, v0

    if-eqz v4, :cond_3

    .line 4
    :cond_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->k(I)V

    return-void

    :cond_1
    if-nez p1, :cond_3

    .line 5
    iget-object v2, v2, Les/cd;->b:Les/cd$s;

    if-eqz v2, :cond_3

    iget-wide v5, v2, Les/cd$s;->a:J

    cmp-long v7, v5, v3

    if-nez v7, :cond_2

    iget-wide v2, v2, Les/cd$s;->b:J

    cmp-long v4, v2, v0

    if-eqz v4, :cond_3

    .line 6
    :cond_2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->k(I)V

    return-void

    .line 7
    :cond_3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->n(I)V

    return-void
.end method

.method private n(I)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->j(I)V

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->a(Landroid/content/Context;Ljava/lang/String;I)V

    return-void
.end method


# virtual methods
.method protected B()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    const/16 v1, 0x1e

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setTimeRenderFlags(I)V

    return-void
.end method

.method protected C()Z
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    .line 2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "isAdjust:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Les/cd;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "vea"

    invoke-static {v2, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    iget-object v1, v0, Les/cd;->b:Les/cd$s;

    const-wide/16 v2, 0x0

    const/4 v4, 0x1

    if-eqz v1, :cond_1

    iget-wide v5, v1, Les/cd$s;->a:J

    cmp-long v7, v5, v2

    if-nez v7, :cond_0

    iget-wide v5, v1, Les/cd$s;->b:J

    iget-wide v7, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->v:J

    cmp-long v1, v5, v7

    if-eqz v1, :cond_1

    :cond_0
    return v4

    .line 4
    :cond_1
    iget-object v1, v0, Les/cd;->c:Les/cd$m;

    if-eqz v1, :cond_3

    iget-wide v5, v1, Les/cd$m;->a:J

    cmp-long v7, v5, v2

    if-nez v7, :cond_2

    iget-wide v1, v1, Les/cd$m;->b:J

    iget-wide v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->v:J

    cmp-long v3, v1, v5

    if-eqz v3, :cond_3

    :cond_2
    return v4

    .line 5
    :cond_3
    iget-object v1, v0, Les/cd;->d:Les/cd$i;

    if-eqz v1, :cond_5

    iget v2, v1, Les/cd$i;->b:F

    const/high16 v3, 0x3f800000    # 1.0f

    cmpl-float v2, v2, v3

    if-nez v2, :cond_4

    iget-object v1, v1, Les/cd$i;->a:Ljava/util/List;

    if-eqz v1, :cond_5

    .line 6
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_5

    :cond_4
    return v4

    .line 7
    :cond_5
    iget-object v1, v0, Les/cd;->e:Les/cd$q;

    if-eqz v1, :cond_6

    iget-object v1, v1, Les/cd$q;->a:Ljava/util/List;

    if-eqz v1, :cond_6

    .line 8
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_6

    return v4

    .line 9
    :cond_6
    iget-object v1, v0, Les/cd;->g:Les/cd$c;

    if-eqz v1, :cond_7

    iget-object v1, v1, Les/cd$c;->d:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_7

    return v4

    .line 10
    :cond_7
    iget-object v1, v0, Les/cd;->i:Les/cd$d;

    if-eqz v1, :cond_8

    iget-object v1, v1, Les/cd$d;->a:Landroid/graphics/RectF;

    if-eqz v1, :cond_8

    return v4

    .line 11
    :cond_8
    iget-object v1, v0, Les/cd;->h:Les/cd$n;

    if-eqz v1, :cond_9

    iget v1, v1, Les/cd$n;->a:I

    if-eqz v1, :cond_9

    return v4

    .line 12
    :cond_9
    iget-object v1, v0, Les/cd;->f:Les/cd$e;

    if-eqz v1, :cond_b

    iget-object v2, v1, Les/cd$e;->a:Les/cd$g;

    if-nez v2, :cond_a

    iget-object v1, v1, Les/cd$e;->b:Les/cd$g;

    if-eqz v1, :cond_b

    :cond_a
    return v4

    .line 13
    :cond_b
    iget-object v1, v0, Les/cd;->k:Les/cd$o;

    if-eqz v1, :cond_c

    iget-object v1, v1, Les/cd$o;->a:Ljava/util/List;

    if-eqz v1, :cond_c

    .line 14
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_c

    return v4

    .line 15
    :cond_c
    iget-object v0, v0, Les/cd;->l:Les/cd$k;

    if-eqz v0, :cond_d

    iget-object v0, v0, Les/cd$k;->a:Ljava/util/List;

    if-eqz v0, :cond_d

    .line 16
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_d

    return v4

    :cond_d
    const/4 v0, 0x0

    return v0
.end method

.method protected D()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->b()Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method protected E()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iget v0, v0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    if-nez v0, :cond_0

    const/4 v0, 0x3

    return v0

    :cond_0
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    return v1

    .line 2
    :cond_1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->E()I

    move-result v0

    return v0
.end method

.method protected F()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->p()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->I()V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->J()Ljava/lang/String;

    move-result-object v0

    .line 4
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 5
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->d(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public a(IILandroid/view/View;)V
    .locals 0

    .line 4
    invoke-direct {p0, p3}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->a(Landroid/view/View;)V

    const/4 p2, 0x1

    packed-switch p1, :pswitch_data_0

    goto/16 :goto_0

    .line 5
    :pswitch_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 6
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 7
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->a()V

    goto :goto_0

    .line 8
    :pswitch_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/AddIntroOrOutroActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 10
    :pswitch_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 11
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/speed/SpeedVideoActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 12
    :pswitch_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 13
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 14
    :pswitch_4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 15
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 16
    :pswitch_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 17
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->O()V

    goto :goto_0

    .line 18
    :pswitch_6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 19
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/AddCaptionActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 20
    :pswitch_7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 21
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/AddBGMusicActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 22
    :pswitch_8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    const/4 p1, 0x0

    .line 23
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m(I)V

    goto :goto_0

    .line 24
    :pswitch_9
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    iput p2, p1, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    .line 25
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m(I)V

    :goto_0
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x3e8
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->p:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method protected b(Ljava/lang/String;)Z
    .locals 2

    .line 3
    :try_start_0
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/l;

    const-string v1, "edit"

    invoke-direct {v0, p1, v1}, Lcom/esfile/screen/recorder/videos/edit/l;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->u:Lcom/esfile/screen/recorder/videos/edit/l;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 4
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 5
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->u:Lcom/esfile/screen/recorder/videos/edit/l;

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_1

    :cond_0
    const/4 p1, 0x0

    :goto_1
    return p1
.end method

.method protected c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 2

    .line 3
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    .line 4
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getDuration()I

    move-result p1

    int-to-long v0, p1

    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->v:J

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    const/4 p1, -0x1

    if-ne p2, p1, :cond_1

    if-eqz p3, :cond_1

    const/4 p1, 0x0

    const-string p2, "save_completed"

    .line 1
    invoke-virtual {p3, p2, p1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p2

    if-eqz p2, :cond_0

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    goto :goto_0

    :cond_0
    const-string p2, "position"

    .line 3
    invoke-virtual {p3, p2, p1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object p2

    if-eqz p2, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->d(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->c()V

    return-void

    .line 3
    :cond_0
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onBackPressed()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-static {}, Les/dd;->c()V

    .line 4
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p1, Les/cd;->a:Ljava/lang/String;

    .line 6
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Les/nb;->b(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_1

    sget-boolean p1, Les/u6;->c:Z

    if-eqz p1, :cond_1

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    new-instance v0, Les/cd$u;

    invoke-direct {v0}, Les/cd$u;-><init>()V

    iput-object v0, p1, Les/cd;->j:Les/cd$u;

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    iget-object p1, p1, Les/cd;->j:Les/cd$u;

    const/4 v0, 0x1

    iput-boolean v0, p1, Les/cd$u;->a:Z

    .line 9
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    invoke-static {p1}, Les/dd;->a(Les/cd;)V

    .line 10
    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result p1

    div-int/lit8 p1, p1, 0x2

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->n:I

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->M()Landroid/view/View;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->setToolContent(Landroid/view/View;)V

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->K()V

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->L()V

    .line 14
    sget-boolean p1, Les/u6;->c:Z

    if-eqz p1, :cond_2

    .line 15
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->N()V

    :cond_2
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->t:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->c()V

    .line 4
    :cond_0
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->c()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a()V

    return-void
.end method

.method protected onResume()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onResume()V

    .line 2
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->m:Les/cd;

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;

    const/4 v1, -0x1

    iput v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity$j;->a:I

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "\u89c6\u9891\u7f16\u8f91\u9875\u9762"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_save:I

    return v0
.end method

.method protected y()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_video_edit:I

    return v0
.end method
